<%@page import="Model.*" %>
<%@page import="Controller.*" %>
<%@page import="java.util.*" %>
<%@taglib prefix="me" uri="/WEB-INF/tlds/mytag_lib.tld"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    String matuyen = request.getParameter("MATUYEN");
    controller_TuyenTau tuyenTau = new controller_TuyenTau();
    model_TuyenTau tt = tuyenTau.Load_CapNhat_TuyenTau(matuyen);
    
    request.setAttribute("ma", tt.getMATUYEN());
    request.setAttribute("ten", tt.getTENTUYEN());
%>

<me:template title="Cập Nhật Tuyến Tàu">
    <jsp:attribute name="content">
        <fieldset style="margin-top: 20px; margin-right: 50px; margin-left: 50px; background-color: #FFFFCC; color: #FF0000">
            <legend><h2>Cập Nhật Tuyến Tàu</h2></legend>
            <form action="QL_TuyenTau/CapNhat.jsp" method="POST" style="margin-top: 20px; padding-left: 20px ">
                Mã tuyến:
                <input type="text" name="txtMATUYEN" value="${ma}" size="30" style="margin-left: 10px"/><br/>
                Tên tuyến:
                <input type="text" name="txtTENTUYEN" value="${ten}" size="50" style="margin-left: 8px"/><br/>
                <input type="submit" value="Cập Nhật" style="margin-top: 10px; margin-left: 75px"/>
                <input type="reset" value="Reset" />
            </form>
        </fieldset>
    </jsp:attribute>
</me:template>